/**
 * SmSTestController.java 
 * Copyright © 2015-3015, 杭州泊享网络科技有限公司
 * 
 * @author Liu Tao
 * @create 2015年1月11日
 */
package com.pshare.msg.sms.service;

import java.time.LocalTime;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pshare.base.bean.SeaxResponse;
import com.pshare.framework.controller.BaseController;

/**
 * 短信接口测试
 */
@Controller
public class SmSTestController extends BaseController {

	@Autowired
	private SmsService smsService;
	
	@ResponseBody
	@RequestMapping(value = "/sms/testapi", method = RequestMethod.GET)
	public SeaxResponse sendSms(String cellphone, String msg) {
		LocalTime time = LocalTime.now();
		smsService.send(cellphone, msg);
		return succeed();
	}
	
}
